<?php

namespace maotool\core\facade;

use maotool\core\Container;
use maotool\core\Facade;
use maotool\core\Instance;
use maotool\orm\sql\Insert;
use maotool\orm\sql\Select;

/**
 * @see \maotool\orm\Db
 * @package maotool\core
 * @mixin \maotool\orm\Db
 * @method static Insert insert() 插入
 * @method static Select select() 查询
 */
class Db extends Facade
{

    /**
     * 获取Facade对应的容器
     * @return Instance
     */
    protected static function getFacadeContainer()
    {
        return Container::getContainer()->getInstanceByClass(\maotool\orm\Db::class);
    }

}